package me.zhengjie.modules.mockexam.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.mockexam.service.CrawlingService;
import me.zhengjie.modules.mockexam.service.MeUserBehaviorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@JobHandler(value = "QuestionPicJobInitHanlder")
@Component
@Slf4j
public class QuestionPicJobInitHanlder extends IJobHandler {


    @Autowired
    private CrawlingService crawlingService;

    @Override
    public ReturnT<String> execute(String param) {
        crawlingService.pic2Local();
        return ReturnT.SUCCESS;
    }


}
